package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.domain.YdAccount;
import com.zhentao.service.YdAccountService;
import com.zhentao.mapper.YdAccountMapper;
import com.zhentao.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @description 针对表【yd_account(账户信息)】的数据库操作Service实现
*/
@Service
public class YdAccountServiceImpl extends ServiceImpl<YdAccountMapper, YdAccount>
    implements YdAccountService{
    @Autowired
    private YdAccountMapper ydAccountMapper;

    @Override
    public Result AccountList() {
        List<YdAccount> ydAccounts = ydAccountMapper.selectList(null);
        return Result.success().put("data", ydAccounts);
    }
}




